package org.example.src;

import java.time.LocalDateTime;

public abstract class BaseRecord {
    private String recordId;
    private LocalDateTime creatime;
    private final RecordType type;
   protected BaseRecord(RecordType type, String recordId, LocalDateTime creatime) {
        this.type = type;
        this.recordId = recordId;
        this.creatime = creatime;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public LocalDateTime getCreatime() {
        return creatime;
    }

    public void setCreatime(LocalDateTime creatime) {
        this.creatime = creatime;
    }

    public RecordType getType() {
        return type;
    }
}
